<?php
	include "constants.php";
	mysql_connect($host,$user,$pass);
	mysql_select_db($base);
	$q=$_GET["planet"];
	
	$result = mysql_query("SELECT * FROM planets WHERE id = {$q}");
	$row = mysql_fetch_array($result);
	
	for ($i = 0; $i < $row["size"]; $i++) {
		echo "<option value={$i}>{$i}</option>";
	}
?>